import 'package:shared_preferences/shared_preferences.dart';

enum HomeData{
  topic,
  cateGory
}

class AppConfig {
  static  bool isUser = false;
  static int orderIndex=0;
  static String token='';
  static String  gender='';
  static String avatar='';
  static String mobile='';
  static String nickName='';

  static Future<String> getToken() async {
    SharedPreferences prefs = await SharedPreferences.getInstance();
    String token = prefs.getString("token");
    token ??= '';
    AppConfig.token = token;
    return token;
  }


  static Future<void> setToken(String token)async{
    SharedPreferences prefs = await SharedPreferences.getInstance();
    prefs.setString("token",token);
  }



}